package com.zoweunion.mechanic.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhangjun
 * @time 2019-07-25
 */
public class WxUserInfo implements Serializable {
    private static final long serialVersionUID = 390300824891118461L;


    public static Integer SEX_MAN = 1;
    public static Integer SEX_WUMAN = 2;
    /** 微信绑定 */
    public static Integer TYPE_WX = 2;
    /** 支付宝绑定 */
    public static Integer TYPE_ALIPAY = 3;


    private String id = "";
    /** 用户id */
    private String user_id = "";
    /** 用户的唯一标识 */
    private String openid = "";
    /** 用户昵称 */
    private String nickname = "";
    /** 用户的性别，值为1-男性，2-女性，值为0时是未知 */
    private Integer sex = 0;
    /** 用户个人资料填写的省份 */
    private String province = "";
    /** 普通用户个人资料填写的城市 */
    private String city = "";
    /** 国家，如中国为CN */
    private String country = "";
    /** 用户头像，最后一个数值代表正方形头像大小（有0、46、64、96、132数值可选，0代表640*640正方形头像），用户没有头像时该项为空。若用户更换头像，原有头像URL将失效。 */
    private String headimgurl = "";
    /** 用户特权信息，json 数组，如微信沃卡用户为（chinaunicom） */
    private String privilege = "";
    /** 只有在用户将公众号绑定到微信开放平台帐号后，才会出现该字段。 */
    private String unionid = "";
    /** 语言 */
    private String language = "";
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date create_time = new Date(0);
    /** 删除标志 */
    private Integer delete_flag = 0;

    // 请求参数
    /** 手机号 */
    private String mobile_phone = "";
    /** 微信或者支付宝绑定 2-微信，3-支付宝 */
    private Integer type = 0;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public String getPrivilege() {
        return privilege;
    }

    public void setPrivilege(String privilege) {
        this.privilege = privilege;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Integer getDelete_flag() {
        return delete_flag;
    }

    public void setDelete_flag(Integer delete_flag) {
        this.delete_flag = delete_flag;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getMobile_phone() {
        return mobile_phone;
    }

    public void setMobile_phone(String mobile_phone) {
        this.mobile_phone = mobile_phone;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
